import request from '@/utils/request'

// 查询机场基本信息列表
export function listDock_info(query) {
    return request({
        url: '/equipment/dock_info/list',
        method: 'get',
        params: query
    })
}

// 查询机场基本信息详细
export function getDock_info(id) {
    return request({
        url: '/equipment/dock_info/' + id,
        method: 'get'
    })
}

// 新增机场基本信息
export function addDock_info(data) {
    return request({
        url: '/equipment/dock_info',
        method: 'post',
        data: data
    })
}

// 修改机场基本信息
export function updateDock_info(data) {
    return request({
        url: '/equipment/dock_info',
        method: 'put',
        data: data
    })
}

// 删除机场基本信息
export function delDock_info(id) {
    return request({
        url: '/equipment/dock_info/' + id,
        method: 'delete'
    })
}

// 查询所有未绑定的机场名称
export function listAllNoBind() {
    return request({
      url: '/equipment/dock_info/allNoBind',
      method: 'get'
    })
}

// 查询在线设备列表
export function listOnlineDevices(query) {
    return request({
        url: '/equipment/dock_info/onlineDevices',
        method: 'get',
        params: query
    })
}
